package JAVACORE_TRAINING.OOPS_CONCEPTS.GENERICS.SAMPLE01;

public class ExecInterfaces  
				implements IGeometricObjects {

    /***
     * shOpt = 0: Tam giác
     * shOpt  = 1: Bát giác
     */
    @Override
    public double Area(Object obj, short shOpt) {
        switch (shOpt) {
            //TH: Tam giác
            case 0: {
                  TringleObject objTringle = (TringleObject) obj;                  
            }break;
            case 1: {
                OctagonObject objOctagon = (OctagonObject) obj;
            }break;
        }
        return 0;
    }

    @Override
    public double Perrimeter(Object obj, short shOpt) {
        return 0;
    }

}
